from django.db import models
from django.utils.translation import ugettext_lazy as _

from aboutfamily.user.models import Profile, Family

from aboutfamily import ENCODING

# Create your models here.
class Event(models.Model):
    topic = models.CharField(max_length=70,verbose_name=_("Event Topic"),blank=False)
    initiator = models.OneToOneField(Profile)
    start_date = models.DateField(verbose_name=_("Start Date"),blank=False)
    end_date = models.DateField(verbose_name=_("End Date"),blank=False)
    location = models.CharField(max_length=100, verbose_name=_("Location"), blank=True)
    description = models.TextField(verbose_name=_("Event Description"),blank=True)
    
    def __unicode__(self):
        return self.topic
    
    
class InvolveParty(models.Model):
    event = models.ForeignKey(Event)
    involve = models.ManyToManyField(Profile)
#    family = models.OneToOneField(Family)
